﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MVCPets.Models.UserModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	User Details
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>User Details</h2>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">Firstname</div>
        <div class="display-field"><%= Model.FirstName %></div>
        
        <div class="display-label">LastName</div>
        <div class="display-field"><%= Model.LastName %></div>
        
        <div class="display-label">EmailAddress</div>
        <div class="display-field"><%= Model.EmailAddress %></div>       
        
        <div class="display-label">Role</div>
        <div class="display-field"><%= Model.RoleName %></div>
        
        <div class="display-label">RegistrationDate</div>
        <div class="display-field"><%= Model.RegistrationDate.ToShortDateString() %></div>
        
    </fieldset>
    <p>

        <%= Html.ActionLink("[Edit]", "Edit", new { id=Model.ID }) %> |
        <%= Html.ActionLink("[Back to List]", "Index") %>
    </p>

</asp:Content>